<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

?>
<font color="Red">
<label id="error_message_jobseeker" style="display: none;">&nbsp;</label>
</font>
<form id="form_feedback_<?php echo $this->item->id; ?>" name="form_feedback_<?php echo $this->item->id; ?>" action="<?php echo JURI::root();?>index.php" method="post">
    <div class="moduletable resume-box">
    <h3><?php echo JText::_('Please fill in the form below to send email to job seeker');?></h3>
    
    <table class="tabledata sendtofriend">
        <?php 
        $first = 'first ';
        if(!$user->id){ $first = '';
        ?>
        <tr class="first sectiontableentry1">
            <td class="key" width="30%"><?php echo JText::_('Your email address');?>:</td>
            <td width="70%"><input class="inputbox" name="youremail" size="60" value=""/><font color="Red">*</font></td>
        </tr>
        <?php
        }
        ?>
        <tr class="<?php echo $first; ?>sectiontableentry2">
            <td class="key" ><?php echo JText::_('Subject')?>:</td>
            <td><input class="inputbox" name="subject" size="60" value=""/><font color="Red">*</font></td>
        </tr>
        <tr class="sectiontableentry1">
            <td class="key" valign="top"><?php echo JText::_('Message')?>:</td>
            <td>
                <textarea name="message" cols="45" rows="10"></textarea>
            </td>
        </tr>
        <tr class="sectiontableentry2">
            <td></td>
            <td><input type="checkbox" name="mailjobseekersendmyself" value="1"/><?php echo JText::_('Send me a copy of this message'); ?></td>
        </tr>
        <tr>
          	<td colspan="2">
          		<span style="color:red;font-style:italic;"><?php echo JText::_('Fields marked with an asterisk (*) are required.'); ?></span>
          	</td>
          </tr>
        <tr class="last sectiontableentry1">
            <td></td>
            <td>
                <input class="button" type="button" onclick="check_submit_jobseeker('form_feedback_<?php echo $this->item->id; ?>')" name="sendfriend" value=<?php echo JText::_('Send'); ?> />&nbsp;
                <input class="button" type="reset" name="reset" value="<?php echo JText::_('Reset'); ?>"/>
            </td>
        </tr>
    </table>
    </div>
    <!--<input type="hidden" name="confirm_message" value="<?php echo JText::_('Email content is empty. Do you want to send this mail?'); ?>" />-->
    <input type="hidden" name="cid[]" value="<?php echo $this->item->id; ?>" />
    <input type="hidden" name="user_id" value="<?php echo $this->item->user_id; ?>" />
    <input type="hidden" name="option" value="<?php echo JBCOMNAME; ?>" />
    <input type="hidden" name="view" value="jaresumes" />
    <input type="hidden" name="task" value="sendtojobseeker" />
    <input type="hidden" name="jobseekermail" value="<?php echo $user->email; ?>" />
    <input type="hidden" name="boxchecked" value="1" />
    <input type="hidden" name="Itemid" value="<?php echo JRequest::getVar('Itemid'); ?>" />
    <?php echo JHTML::_( 'form.token' ); ?>    
 </form>